on Update Client
Registers a listener to the global onChangedClient
event. This will be fired on the logical client when a client side config is updated in-game.
Typically, this is when the user closes the config screen, but also occurs after a connected client recieves a S2C update.
This should only perform client logic, and anything referencing client-only classes needs to go here.
Author
fzzyhmstrs
Since
0.5.0
Parameters
listener
OnUpdateClientListener callback that is fired when any config is updated on the client side. This can be used to inspect other configs, not just your own.
See also
A direct-implementation option for inspecting your own config on change.